import request from '@/utils/request'

export function getinfo(bounds) {
  return request({
    url: '/map/infos', // 地图信息
    method: 'get',
    params: { bounds }
  })
}

export function searchmarks(name) {
  return request({
    url: '/map/searchmarks', // 搜索点
    method: 'get',
    params: { name }
  })
}
// 获取点信息
export function getMarkInfo(id) {
  return request({
    url: '/audit', // 具体摊主信息
    method: 'get',
    params: { id }
  })
}
// 新建街区
export function addStreet(name, location, type) {
  return request({
    url: '/super/street', //
    method: 'post',
    params: { name, location, type }
  })
}
export function getStreetInfo(id) {
  return request({
    url: '/map/street/info', //
    method: 'get',
    params: { id }
  })
}
